//
//  ViewController.m
//  SimpleFactoryMode
//
//  Created by mobao on 16/3/29.
//  Copyright © 2016年 mobao. All rights reserved.
//

#import "ViewController.h"
#import "AnimalFactory.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.

    Dog *dog = [AnimalFactory createDog];
    NSLog(@"dog's name is : %@",dog.name);
    
    Cat *cat = [AnimalFactory createCat];
    NSLog(@"cat's name is : %@",cat.name);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
